package com.zhouyu.seven;

import org.springframework.beans.factory.BeanNameAware;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import javax.annotation.Priority;

@Component
@Priority(3)
public class OrderServiceSeven implements BeanNameAware,OrderServiceInterface {

	private String name;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public void setBeanName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "OrderServiceSeven{" +
				"name='" + name + '\'' +
				'}';
	}
}
